package com.zh.autoconfigure;

import com.zh.properties.CosProperties;
import com.zh.template.CosTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 认证satoken

// 标记配置类
@Configuration
@EnableConfigurationProperties(CosProperties.class)
// 导入配置
public class CosFileAutoConfiguration {

    @Bean
    public CosTemplate cosTemplate (CosProperties cosProperties){
        return  new CosTemplate(cosProperties);
    }

}
